<?php


/**
* CakePHP Schema Plugin
* http://cake-schema-plugin.googlecode.com
*
* @package schema
* @subpackage schema.models
* @author Ivan Chistyakov <zetruger@gmail.com>
* @version $Id: schema_column.php 134 2010-10-26 18:31:04Z zetruger@gmail.com $
* @link $HeadURL: http://cake-schema-plugin.googlecode.com/svn/trunk/models/schema_column.php $
* @license MIT License (http://opensource.org/licenses/mit-license.php)
*/


class SchemaColumn extends SchemaAppModel {

var $name = 'SchemaColumn';

var $belongsTo = array(
	'SchemaTable' => array('className' => 'Schema.SchemaTable')
);

var $order = array(
	'SchemaColumn.position' => 'DESC',
	'SchemaColumn.id' => 'DESC'
);

var $formSchema = array(
	'type' => array('type' => 'select', 'options' => array('string', 'text', 'integer', 'float', 'datetime', 'time', 'date', 'binary', 'boolean')),
	'key' => array('type' => 'select', 'empty' => TRUE, 'options' => array('primary', 'unique', 'index'))
);

}


?>